package innerclass.callback;

public class Callbacks {

    private final String SS = "SSS";
    private Hell sayS() {
        return new Hell() {
            @Override
            public void print() {
                System.out.println(SS);
            }
        };
    }
    public static void main(String[] args) {
//        Callee1 c1 = new Callee1();
//        Callee2 c2 = new Callee2();
//        MyIncrement.f(c2);
//        Caller caller1 = new Caller(c1);
//        Caller caller2 = new Caller(c2.getCallbackReference());
//        caller1.go();
//        caller1.go();
//        caller2.go();
//        caller2.go();
        new Callbacks().sayS().print();
    }
}
